package bpm.domain.process;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author <a mailto="hwangsyin@gmail.com">King</a>
 *
 */
public class ProcessDefinitionView implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public String id;
	public String name;
	public String description;
	public Date createTime;
	public Date updateTime;
	public byte[] miniature;
	
	public ProcessDefinitionView() {}
	public ProcessDefinitionView(ProcessDefinition pd) {
		this.id = pd.getId();
		this.name = pd.getName();
		this.description = pd.getDescription();
		this.createTime = pd.getCreateTime();
		this.updateTime = pd.getLastUpdateTime();
		this.miniature = pd.getDiagram();
	}
}
